package org.dreamwork.jasmine2.web.controls;

/**
 * Created by IntelliJ IDEA.
 * User: seth
 * Date: 2009-9-4
 * Time: 10:18:33
 */
public class Hidden extends TextBox{
    public Hidden () {
        super.setAttribute ("type", "hidden");
    }

    @Override
    public void setAttribute (String attrName, String attrValue) {
        if ("type".equalsIgnoreCase (attrName))
            super.setAttribute ("type", "hidden");
        else
            super.setAttribute (attrName, attrValue);
    }
}